import Vue from 'vue'

import { Tabbar, TabbarItem } from 'vant'
import { NavBar } from 'vant'
import { Form } from 'vant'
import { Field } from 'vant'
import { Button } from 'vant'
import { Toast } from 'vant'
import { Icon } from 'vant'
import { Swipe, SwipeItem } from 'vant'
import { Image as VanImage } from 'vant'
import { Cell, CellGroup } from 'vant'
import { Grid, GridItem } from 'vant'
import { Search } from 'vant'
import { Lazyload } from 'vant'
import { Picker } from 'vant'
import { DropdownMenu, DropdownItem } from 'vant'
import { Sidebar, SidebarItem } from 'vant'
import { IndexBar, IndexAnchor } from 'vant'
import { Empty } from 'vant'
import { List } from 'vant';
import { Overlay } from 'vant';
import { Popup } from 'vant';
import { Dialog } from 'vant';
import { Card } from 'vant';
import { Uploader } from 'vant';

Vue.use(Uploader);
Vue.use(Card);
Vue.use(Dialog);
Vue.use(Popup);
Vue.use(Overlay);
Vue.use(List);
Vue.use(Empty)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Sidebar)
Vue.use(SidebarItem)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Picker)
Vue.use(Lazyload)
Vue.use(Search)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(VanImage)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Icon)
Vue.use(Toast)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.use(Tabbar)
Vue.use(TabbarItem)

// 将所有 Toast 的展示时长设置为 7000 毫秒
Toast.setDefaultOptions({ duration: 7000 });